import os
import argparse
from PIL import Image
import matplotlib.pyplot as plt
import numpy as np

path = ''

file = os.listdir(path)
for i in file:
    title = i.split('_')[-1].split('.')[0]
    data = np.load(path+'\\'+i)
    plt.plot(data)
    plt.title(title)
    plt.savefig(f'{title}.png')
    plt.clf()